package com.crm.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the "order" database table.
 * 
 */
@Entity
@Table(name="\"order\"")
@NamedQuery(name="Order.findAll", query="SELECT o FROM Order o")
public class Order implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue = 1, allocationSize = 1,name="ORDER_ORDERID_GENERATOR", sequenceName="SEQ4")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ORDER_ORDERID_GENERATOR")
	@Column(name="ORDER_ID")
	private Long orderId;

	@Column(name="FK_CUSTOMER_ID")
	private BigDecimal fkCustomerId;

	@Column(name="FK_PLAN_ID")
	private BigDecimal fkPlanId;

	@Column(name="IS_REFUND")
	private String isRefund;

	@Column(name="ORDER_ACCESSORY")
	private String orderAccessory;

	@Column(name="ORDER_ADDRESS")
	private String orderAddress;

	@Column(name="ORDER_BACK_MONEY")
	private BigDecimal orderBackMoney;

	@Column(name="ORDER_CHECK")
	private String orderCheck;

	@Column(name="ORDER_CONTACT_ID")
	private BigDecimal orderContactId;

	@Column(name="ORDER_IS_DEL")
	private String orderIsDel;

	@Column(name="ORDER_MONEY")
	private BigDecimal orderMoney;

	@Column(name="ORDER_NUMBER")
	private BigDecimal orderNumber;

	@Temporal(TemporalType.DATE)
	@Column(name="ORDER_OVER_TIME")
	private Date orderOverTime;

	@Column(name="ORDER_REMARK")
	private String orderRemark;

	@Temporal(TemporalType.DATE)
	@Column(name="ORDER_START_TIME")
	private Date orderStartTime;

	@Column(name="ORDER_STATE")
	private String orderState;

	@Column(name="ORDER_TOPIC")
	private String orderTopic;

	@Column(name="ORDER_USER_ID")
	private BigDecimal orderUserId;

	public Order() {
	}

	public Long getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public BigDecimal getFkCustomerId() {
		return this.fkCustomerId;
	}

	public void setFkCustomerId(BigDecimal fkCustomerId) {
		this.fkCustomerId = fkCustomerId;
	}

	public BigDecimal getFkPlanId() {
		return this.fkPlanId;
	}

	public void setFkPlanId(BigDecimal fkPlanId) {
		this.fkPlanId = fkPlanId;
	}

	public String getIsRefund() {
		return this.isRefund;
	}

	public void setIsRefund(String isRefund) {
		this.isRefund = isRefund;
	}

	public String getOrderAccessory() {
		return this.orderAccessory;
	}

	public void setOrderAccessory(String orderAccessory) {
		this.orderAccessory = orderAccessory;
	}

	public String getOrderAddress() {
		return this.orderAddress;
	}

	public void setOrderAddress(String orderAddress) {
		this.orderAddress = orderAddress;
	}

	public BigDecimal getOrderBackMoney() {
		return this.orderBackMoney;
	}

	public void setOrderBackMoney(BigDecimal orderBackMoney) {
		this.orderBackMoney = orderBackMoney;
	}

	public String getOrderCheck() {
		return this.orderCheck;
	}

	public void setOrderCheck(String orderCheck) {
		this.orderCheck = orderCheck;
	}

	public BigDecimal getOrderContactId() {
		return this.orderContactId;
	}

	public void setOrderContactId(BigDecimal orderContactId) {
		this.orderContactId = orderContactId;
	}

	public String getOrderIsDel() {
		return this.orderIsDel;
	}

	public void setOrderIsDel(String orderIsDel) {
		this.orderIsDel = orderIsDel;
	}

	public BigDecimal getOrderMoney() {
		return this.orderMoney;
	}

	public void setOrderMoney(BigDecimal orderMoney) {
		this.orderMoney = orderMoney;
	}

	public BigDecimal getOrderNumber() {
		return this.orderNumber;
	}

	public void setOrderNumber(BigDecimal orderNumber) {
		this.orderNumber = orderNumber;
	}

	public Date getOrderOverTime() {
		return this.orderOverTime;
	}

	public void setOrderOverTime(Date orderOverTime) {
		this.orderOverTime = orderOverTime;
	}

	public String getOrderRemark() {
		return this.orderRemark;
	}

	public void setOrderRemark(String orderRemark) {
		this.orderRemark = orderRemark;
	}

	public Date getOrderStartTime() {
		return this.orderStartTime;
	}

	public void setOrderStartTime(Date orderStartTime) {
		this.orderStartTime = orderStartTime;
	}

	public String getOrderState() {
		return this.orderState;
	}

	public void setOrderState(String orderState) {
		this.orderState = orderState;
	}

	public String getOrderTopic() {
		return this.orderTopic;
	}

	public void setOrderTopic(String orderTopic) {
		this.orderTopic = orderTopic;
	}

	public BigDecimal getOrderUserId() {
		return this.orderUserId;
	}

	public void setOrderUserId(BigDecimal orderUserId) {
		this.orderUserId = orderUserId;
	}

}